<?php namespace App\Admin\Cabinet\CabinetType;

use App\Core\Model as BaseModel;

class Model extends BaseModel {

    protected $table = 'cabinet_type';
    protected $primaryKey = 'id';
    
    //factory对应关系
    public function factory(){
        return $this->belongsTo('App\Admin\Cabinet\CabinetFactory\Model', 'factory_id', 'id');
    }
}